<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:import href="xsl_import/global_main_content_area_imp.xsl" />
	<xsl:import href="xsl_import/global_banner_imp.xsl" />
	<xsl:import href="xsl_import/global_navigation_basics_imp.xsl" />
	<xsl:include href="xsl_include/global_xsl_header_inc.xsl" />
	<xsl:param name="primaryNav"></xsl:param>
	<xsl:param name="secondaryNav"></xsl:param>
	<xsl:param name="tertiaryNav"></xsl:param>
	<xsl:param name="queryStringSuffix"></xsl:param>
	<xsl:template match="/">
			<!-- b08shf 8/11/04 -->
		<xsl:variable name="rootHelpURL">
			<xsl:value-of select="/application_header/navigation/helpURL" />
		</xsl:variable>
		<xsl:variable name="primaryHelpURL">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/helpURL" />
		</xsl:variable>
		<xsl:variable name="secondaryHelpURL">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/helpURL" />
		</xsl:variable>
		<xsl:variable name="tertiaryHelpURL">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/sub_context[id=$tertiaryNav]/helpURL" />
		</xsl:variable>
		<xsl:variable name="helpURL">
			<xsl:choose>
				<xsl:when test="$tertiaryHelpURL = ''">
					<xsl:choose>
						<xsl:when test="$secondaryHelpURL = ''">
							<xsl:choose>
								<xsl:when test="$primaryHelpURL = ''">
									<xsl:choose>
										<xsl:when test="$rootHelpURL = ''">intrafsg</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="$rootHelpURL"/>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$primaryHelpURL"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$secondaryHelpURL"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$tertiaryHelpURL"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="rootHelpHeight">
			<xsl:value-of select="/application_header/navigation/help_tool/height" />
		</xsl:variable>
		<xsl:variable name="primaryHelpHeight">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/help_tool/height" />
		</xsl:variable>
		<xsl:variable name="secondaryHelpHeight">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/help_tool/height" />
		</xsl:variable>
		<xsl:variable name="tertiaryHelpHeight">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/sub_context[id=$tertiaryNav]/help_tool/height" />
		</xsl:variable>
		<xsl:variable name="helpWindowHeight">
			<xsl:choose>
				<xsl:when test="$tertiaryHelpHeight = ''">
					<xsl:choose>
						<xsl:when test="$secondaryHelpHeight = ''">
							<xsl:choose>
								<xsl:when test="$primaryHelpHeight = ''">
									<xsl:choose>
										<xsl:when test="$rootHelpHeight = ''">400</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="$rootHelpHeight"/>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$primaryHelpHeight"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$secondaryHelpHeight"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$tertiaryHelpHeight"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>							
		<xsl:variable name="rootHelpWidth">
			<xsl:value-of select="/application_header/navigation/help_tool/width" />
		</xsl:variable>
		<xsl:variable name="primaryHelpWidth">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/help_tool/width" />
		</xsl:variable>
		<xsl:variable name="secondaryHelpWidth">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/help_tool/width" />
		</xsl:variable>
		<xsl:variable name="tertiaryHelpWidth">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/sub_context[id=$tertiaryNav]/help_tool/width" />
		</xsl:variable>
		<xsl:variable name="helpWindowWidth">
			<xsl:choose>
				<xsl:when test="$tertiaryHelpWidth = ''">
					<xsl:choose>
						<xsl:when test="$secondaryHelpWidth = ''">
							<xsl:choose>
								<xsl:when test="$primaryHelpWidth = ''">
									<xsl:choose>
										<xsl:when test="$rootHelpWidth = ''">200</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="$rootHelpWidth"/>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$primaryHelpWidth"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$secondaryHelpWidth"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$tertiaryHelpWidth"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- start b08gss 9/20/04 -->				
		<xsl:variable name="rootHelpScrolling">
			<xsl:value-of select="/application_header/navigation/help_tool/scrolling" />
		</xsl:variable>
		<xsl:variable name="primaryHelpScrolling">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/help_tool/scrolling" />
		</xsl:variable>
		<xsl:variable name="secondaryHelpScrolling">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/help_tool/scrolling" />
		</xsl:variable>
		<xsl:variable name="tertiaryHelpScrolling">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/sub_context[id=$tertiaryNav]/help_tool/scrolling" />
		</xsl:variable>
		<xsl:variable name="helpWindowScrolling">
			<xsl:choose>
				<xsl:when test="$tertiaryHelpScrolling = ''">
					<xsl:choose>
						<xsl:when test="$secondaryHelpScrolling = ''">
							<xsl:choose>
								<xsl:when test="$primaryHelpScrolling = ''">
									<xsl:choose>
										<xsl:when test="$rootHelpScrolling = ''">no</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="$rootHelpScrolling"/>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$primaryHelpScrolling"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$secondaryHelpScrolling"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$tertiaryHelpScrolling"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="rootHelpResizeable">
			<xsl:value-of select="/application_header/navigation/help_tool/resizeable" />
		</xsl:variable>
		<xsl:variable name="primaryHelpResizeable">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/help_tool/resizeable" />
		</xsl:variable>
		<xsl:variable name="secondaryHelpResizeable">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/help_tool/resizeable" />
		</xsl:variable>
		<xsl:variable name="tertiaryHelpResizeable">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/sub_context[id=$tertiaryNav]/help_tool/resizeable" />
		</xsl:variable>
		<xsl:variable name="helpWindowResizeable">
			<xsl:choose>
				<xsl:when test="$tertiaryHelpResizeable = ''">
					<xsl:choose>
						<xsl:when test="$secondaryHelpResizeable = ''">
							<xsl:choose>
								<xsl:when test="$primaryHelpResizeable = ''">
									<xsl:choose>
										<xsl:when test="$rootHelpResizeable = ''">no</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="$rootHelpResizeable"/>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$primaryHelpResizeable"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$secondaryHelpResizeable"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$tertiaryHelpResizeable"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="rootHelpStatus">
			<xsl:value-of select="/application_header/navigation/help_tool/status" />
		</xsl:variable>
		<xsl:variable name="primaryHelpStatus">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/help_tool/status" />
		</xsl:variable>
		<xsl:variable name="secondaryHelpStatus">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/help_tool/status" />
		</xsl:variable>
		<xsl:variable name="tertiaryHelpStatus">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/sub_context[id=$tertiaryNav]/help_tool/status" />
		</xsl:variable>
		<xsl:variable name="helpWindowStatus">
			<xsl:choose>
				<xsl:when test="$tertiaryHelpStatus = ''">
					<xsl:choose>
						<xsl:when test="$secondaryHelpStatus = ''">
							<xsl:choose>
								<xsl:when test="$primaryHelpStatus = ''">
									<xsl:choose>
										<xsl:when test="$rootHelpStatus = ''">no</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="$rootHelpStatus"/>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$primaryHelpStatus"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$secondaryHelpScrolling"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$tertiaryHelpScrolling"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="rootHelpMenu">
			<xsl:value-of select="/application_header/navigation/help_tool/menu" />
		</xsl:variable>
		<xsl:variable name="primaryHelpMenu">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/help_tool/menu" />
		</xsl:variable>
		<xsl:variable name="secondaryHelpMenu">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/help_tool/menu" />
		</xsl:variable>
		<xsl:variable name="tertiaryHelpMenu">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/sub_context[id=$tertiaryNav]/help_tool/menu" />
		</xsl:variable>
		<xsl:variable name="helpWindowMenu">
			<xsl:choose>
				<xsl:when test="$tertiaryHelpMenu = ''">
					<xsl:choose>
						<xsl:when test="$secondaryHelpMenu = ''">
							<xsl:choose>
								<xsl:when test="$primaryHelpMenu = ''">
									<xsl:choose>
										<xsl:when test="$rootHelpMenu = ''">no</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="$rootHelpMenu"/>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$primaryHelpMenu"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$secondaryHelpMenu"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$tertiaryHelpMenu"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="rootHelpToolbar">
			<xsl:value-of select="/application_header/navigation/help_tool/toolbar" />
		</xsl:variable>
		<xsl:variable name="primaryHelpToolbar">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/help_tool/toolbar" />
		</xsl:variable>
		<xsl:variable name="secondaryHelpToolbar">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/help_tool/toolbar" />
		</xsl:variable>
		<xsl:variable name="tertiaryHelpToolbar">
			<xsl:value-of select="/application_header/navigation/context[id=$primaryNav]/sub_context[id=$secondaryNav]/sub_context[id=$tertiaryNav]/help_tool/toolbar" />
		</xsl:variable>
		<xsl:variable name="helpWindowToolbar">
			<xsl:choose>
				<xsl:when test="$tertiaryHelpToolbar = ''">
					<xsl:choose>
						<xsl:when test="$secondaryHelpToolbar = ''">
							<xsl:choose>
								<xsl:when test="$primaryHelpToolbar = ''">
									<xsl:choose>
										<xsl:when test="$rootHelpToolbar = ''">no</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="$rootHelpToolbar"/>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$primaryHelpToolbar"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$secondaryHelpToolbar"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$tertiaryHelpToolbar"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- end b08gss 9/20/04 -->					
		<html>
			<head>
				<title>
					<xsl:value-of select="/application_header/title" />
				</title>
				<link href="styleguide/includes/fds_corporate.css" rel="styleSheet" type="text/css" />
				<script language="JavaScript" src="styleguide/includes/fsg_corporate.js" />
			</head>
			<body marginwidth="0" marginheight="0" onLoad="javascript:start()" onunload="javascript:stop()">
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
					<tr>
						<td colspan="2">
							<xsl:call-template name="bannerBar" />
						</td>
					</tr>
					<tr>
						<td width="100%">
							<xsl:call-template name="brandingBanner">
								<xsl:with-param name="primaryNav" select="$primaryNav" />
							</xsl:call-template>
						</td>
					</tr>
					<!-- Start Toolbar -->
					<xsl:if test="application_header/navigation/use_toolbar = 'true'">
						<tr>
							<td colspan="2" height="25px">
								<xsl:call-template name="toolBar">
									<!-- b06tja 6/15/04 -->
									<xsl:with-param name="launchTool" select="application_header/navigation/launch_tool"/>
									<!-- b06tja 6/15/04 -->							
									<!-- b08shf 9/21/04 -->
									<xsl:with-param name="quickLinks" select="application_header/navigation/navSelect_tool"/>
									<!-- end b08shf 9/21/04 -->							
									<xsl:with-param name="showSearch">
										<xsl:value-of select="application_header/navigation/use_search" />
									</xsl:with-param>
									<xsl:with-param name="showPrint">
										<xsl:value-of select="application_header/navigation/use_print" />
									</xsl:with-param>
									<xsl:with-param name="showHelp">
										<xsl:value-of select="application_header/navigation/use_help" />
									</xsl:with-param>
									<xsl:with-param name="helpURL" select="$helpURL" />
									<!-- b08shf 8/11/04 -->
									<xsl:with-param name="helpWindowWidth" select="$helpWindowWidth" />
									<xsl:with-param name="helpWindowHeight" select="$helpWindowHeight" />
									<xsl:with-param name="showCustomTools">
										<xsl:value-of select="application_header/navigation/use_customTool" />
									</xsl:with-param>
									<!-- end b08shf 8/11/04 -->
									<!-- b08gss 9/20/04 -->
									<xsl:with-param name="helpScrolling" select="$helpWindowScrolling" />
									<xsl:with-param name="helpResizeable" select="$helpWindowResizeable" />
									<xsl:with-param name="helpStatus" select="$helpWindowStatus" />
									<xsl:with-param name="helpMenu" select="$helpWindowMenu" />
									<xsl:with-param name="helpToolbar" select="$helpWindowToolbar" />
									<!-- end b08gss 9/20/04 -->
								</xsl:call-template>
							</td>
						</tr>
					</xsl:if>
					<!-- END TOOLBAR -->
					<tr>
						<td width="100%" height="100%" valign="top" colspan="2">
							<a name="fdsMainContent"></a>
							<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
								<tr>
									<td valign="top">
										<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
											<tr width="100%">
												<td id="sideNavTable" class="fdsNavUnSelectedNode" valign="top" width="195" height="100%">
													<xsl:call-template name="leftNavigation">
														<xsl:with-param name="primaryNav" select="$primaryNav" />
														<xsl:with-param name="secondaryNav" select="$secondaryNav" />
														<xsl:with-param name="tertiaryNav" select="$tertiaryNav" />
													</xsl:call-template>
												</td>
												<td valign="top" width="100%" height="100%" style="padding:10px;">
													<table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
														<tr>
															<td>
																<xsl:call-template name="breadCrumbs">
																	<xsl:with-param name="prefix">You Are Here</xsl:with-param>
																	<xsl:with-param name="delimeter">
																		<xsl:text> --> </xsl:text>
																	</xsl:with-param>
																	<xsl:with-param name="primaryNav" select="$primaryNav" />
																	<xsl:with-param name="secondaryNav" select="$secondaryNav" />
																	<xsl:with-param name="tertiaryNav" select="$tertiaryNav" />
																</xsl:call-template>
															</td>
														</tr>
														<tr>
															<td>
																<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
															</td>
														</tr>
														<tr>
															<td height="100%">
																<xsl:call-template name="iframe">
																	<xsl:with-param name="primaryNav" select="$primaryNav" />
																	<xsl:with-param name="secondaryNav" select="$secondaryNav" />
																	<xsl:with-param name="tertiaryNav" select="$tertiaryNav" />
																	<xsl:with-param name="queryStringSuffix" select="$queryStringSuffix" />
																</xsl:call-template>
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>